package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 运费模板
 * </p>
 *
 * @author Lbx
 * @since 2024-03-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdFreightTemplate对象", description="运费模板")
public class JdFreightTemplate extends Model<JdFreightTemplate> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "模版名称")
    private String name;

    @ApiModelProperty(value = "计费类型（0按重量，1按件数）")
    private Integer chargeType;

    @ApiModelProperty(value = "首重Kg，首件数")
    private BigDecimal firstWeight;

    @ApiModelProperty(value = "首费（元）")
    private BigDecimal firstFee;

    @ApiModelProperty(value = "阶梯增重、件")
    private BigDecimal continueWeight;

    @ApiModelProperty(value = "阶梯增费")
    private BigDecimal continmeFee;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "市编码")
    private String cityCode;

    @ApiModelProperty(value = "区编码")
    private String countryCode;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "目的地（省、市）")
    private String destination;

    @ApiModelProperty(value = "类型(0-默认模版  1-运费模版)")
    private String type;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
